﻿using BusinessLayer.RegInfo.Entities;
using BusinessLayer.RegInfo.Models;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace BackEnd.Models
{
    public class PrivilegeModel
    {
        public List<AdminUserGroup> ListUserGroups { get; set; }
        public List<AdminUserExtend> ListUsers { get; set; }
        public List<AdminActionExtend> ListActions { get; set; }
        public List<AdminMenuExtend> ListMenu { get; set; }
        [Required(ErrorMessage="You must choose user groups")]
        public int[] SelectedUserGroupIDs { get; set; }
        //[Required(ErrorMessage = "You must choose users")]
        public int[] SelectedUserIDs { get; set; }
        //[Required(ErrorMessage = "You must choose actions")]
        public int[] SelectedActionIDs { get; set; }
        //[Required(ErrorMessage = "You must choose menu")]
        public int[] SelectedMenuIDs { get; set; }
        public string Action { get; set; }
        public string SelMenuIDs { get; set; }
    }
}